#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2018/9/12 14:50
@desc
"""

ratingWrapper = """8.4/10\n18,558\n730 user 18 critic\nRate This"""
lst = ratingWrapper.split('\n')

print(lst)

scoreFormula = lst[0]
print("scoreFormula：" + scoreFormula)
scores = scoreFormula.split('/')
print(scores)
score = scores[0]
print(score)

if (True and True):
    print("aa")
else:
    print("bb")

participants = ['Creator:\nCourtney A. Kemp',
                u'Stars:\nOmari Hardwick, Lela Loren, Naturi Naughton | See full cast & crew »']
print(type(participants))

for es in participants:
    print(es.replace('\n', ''))

creators1 = [e.replace('\n', '').split(':')[1] for e in participants if (
e.replace('\n', '').split(':')[0].__eq__('Creators') or e.replace('\n', '').split(':')[0].__eq__('Creator'))]

print("creators1:")
print(creators1)

creators = [e.split('\n')[1] for e in participants if
            (e.split('\n')[0] == 'Creators:' and e.split('\n')[0] == 'Creator:')]
print(creators)

a1 = "qaa"
b1 = "qaa1"

print(a1.__eq__(b1))
